<extend name="Public:base" />
<block name="body">
<!--引入弹窗插件-->
<include file="Public:artdialog" />

 <div class="main-content">
        <div class="breadcrumbs" id="breadcrumbs">
            <script type="text/javascript">
                try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
            </script>
            <ul class="breadcrumb">
                <li>
                    <i class="icon-home home-icon"></i>
                    <span style="color:#428bca">{$parent_nav.name}</span>
                </li>
                <li class="active">{$one_nav.name}</li>
            </ul><!-- .breadcrumb -->
        </div>

<div class="page-content">
<!--              <div class="header">
             <button class="btn btn-primary btn-sm"  onclick="_es_openDilog902('{:U('Nav/index')}','菜单管理','caidanguanli')">
                <i class="icon-cog align-top bigger-125"></i>
                菜单管理
                </button>

             <button class="btn btn-primary btn-sm"  onclick="_es_openDilog90('{:U('Nav/edit_admin',array('is_add'=>1))}','添加管理员','tianjiaguanliyuan')">
                <i class="icon-edit align-top bigger-125"></i>
                添加管理员
            </button>
            </div> -->
    <form action="{:U('User/admin_list')}" method="post" id="searchForm">
    <div class="row">
        <div class="col-md-12">
            <div class="block-web">

            <div class="row" style="margin-bottom: 10px;">

                <div class="col-md-8" style="text-align: left;">
                        关键字：<input type="text" name="title" value="{$title}" placeholder="请输入用户名/邮箱" >&nbsp;&nbsp;<a href="javascript:;" onclick="load()"  class="btn btn-default btn-sm">搜索</a>
                </div>

            </div>
                <div class="porlets-content">
                    <div class="table-responsive">
                        <div id="order_list_item_content">
                            <div class="item-list-bd" style="height:100px;line-height:100px;text-align:center;">
                                <img src="__PUBLIC__/admin/images/load3.gif" />
                                加载中...
                            </div>
                        </div>
                    </div><!--/table-responsive-->
                </div><!--/porlets-content-->
            </div><!--/block-web-->
        </div><!--/col-md-12-->
    </div>
</form>
</div>
</div>
<script type="text/javascript">
    $(function(){
        goSearch("#searchForm","order_list_item_content");
      $(document).keydown(function(event){ 
        if(event.keyCode==13){ 
        load(); 
        } 
        })
    });

    function load(){
        goSearch("#searchForm","order_list_item_content");
    }

    function toParentChilder(id){
        $('#parent_id').val(id);
        goSearch("#searchForm","order_list_item_content");
    }

function clock_load_dialog(){
   setTimeout(function(){
    var win=    art.dialog.opener;
                win.load();
                top.art.dialog().close();
    },800);
}

function _es_openDilog90(url, title,id){ 
     art.dialog.open(url, { title: title, width: '1200px', height: '90%', opacity: 0.2, id: id, fixed: true, close:function(){load();}  });
}


    function delete_ok(id){
        art.dialog({
            content: "确定要删除吗？",
            icon: 'question',
            lock: true,
            opacity: 0.2,
            id:'dele',
            ok: function () {
                var url="{:U('Nav/delete_admin_ok')}";
                $.ajax({
                    'url':url,
                    'data':{id:id},
                    'dataType':'json',
                    'type':'post',
                    success:function(data){
                        goSearch("#searchForm","order_list_item_content");
                        //_reload_currentpage_datalist('order_list_item_content');
                        // goSearch("#searchForm","order_list_item_content");
                        var retstatus = data.status == 1 ? "1" : "0";
                        showvfmsg(retstatus, data.info, 1900);

                    },error:function(){
                        showvfmsg('error','请求服务器失败',2000);
                    },complete:function(){

                    }
                });


            },
            cancelVal: '取消',
            cancel: true
        });
    }
</script>
</block>
